import {
  BrowserRouter as Router,
  Switch,
  Route,
  useParams,
  useHistory,
  useLocation,
} from "react-router-dom";
import "./index.css";
export default function Son2() {
  const { id } = useParams();
  let history = useHistory();
  let location = useLocation();
  console.log(id, history, location);
  return <div>我是第二个儿子组件</div>;
}
